﻿@*@model IEnumerable<PilotProject.Person>*@
@model PilotMVC.Models.ManageCandidateView
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_ExaminerLayout.cshtml";
}
<link href="../../Content/tables.css" rel="stylesheet" type="text/css" />
<link href="../../Content/items1/forms.css" rel="stylesheet" type="text/css" />


@using (@Html.BeginForm("ExaminerList", "ScheduleTest"))
 {     
<div id="search">  
<fieldset> 
<legend>Search For a Candidate</legend>

         <label>JPA<span class="small">Search by JPA</span></label>   
         <div> <p>@Html.TextBox("jpa")</p></div>  
           
         <label>First Name<span class="small">Search by first name</span></label>
         <div> <p>@Html.TextBox("firstName")</p></div>
           
         <label>Last Name<span class="small">Search by last name</span></label>
         <div> <p>@Html.TextBox("lastName")</p></div>

          <p class="posp"><input type="submit" value="Search" class="searchbt"/> </p>
</fieldset>
       
</div>
} 
<div id="box">
<p><span style="float:right;"> @Html.ActionLink("Add New Candidate", "AddCandidate") </span></p>
</div>



<div id="ide" class="datagrid">
 @if (@Model.Candidates != null)
 { 
<table> 
<thead>
    <tr>
        <th>
            JPA
        </th>
        <th>
            First Name
        </th>
        <th>
            Last Name
        </th>
        <th>View Details </th>
    </tr>
</thead>

    <tfoot><tr><td colspan="4"><div id="no-paging">&nbsp;</div></tr></tfoot>

 <tbody>
  
    @foreach (var item in @Model.Candidates)
    {
    
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.JPA)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FirstName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LastName)
            </td>
            <td>
                <a href="@Url.Action("ConfirmationPage","ScheduleTest", new { id = item.Id })" ><img alt="Edit" src="../../Content/items1/img/rte/editIco.png" /> </a>
            </td>
        </tr>
    }

</tbody>
</table>
 
}



 </div>
